package com.zzb.springcloud.service.impl;

import com.zzb.springcloud.dao.PaymentDao;
import com.zzb.springcloud.entity.Payment;
import com.zzb.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description 支付业务实现
 * @CreateTime 2021/4/16 0016 10:55
 * @Author 不浪小生
 */
@Service
public class PaymentImpl implements PaymentService {

    @Autowired
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getById(Long id) {
        return paymentDao.getById(id);
    }
}
